/**
 * 
 */
package org.sidibe.location.sms.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * @author JBromo
 * 
 */
public class DataReceiver extends BroadcastReceiver {

	enum Action {
		SMS_IN("android.provider.Telephony.SMS_RECEIVED"), SMS_OUT(
				"android.provider.Telephony.SMS_RECEIVED"), CALL_IN(
				"android.intent.action.PHONE_STATE"), CALL_OUT(
				"android.provider.Telephony.SMS_RECEIVED");
		String action;

		private Action(String action) {
			this.action = action;
		}

		private String action() {
			return action;
		}
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see android.content.BroadcastReceiver#onReceive(android.content.Context,
	 * android.content.Intent)
	 */
	@Override
	public void onReceive(Context context, Intent intent) {

		String action = intent.getAction();
		Action act = Action.valueOf(action);
		switch (act) {
		case SMS_IN:

			break;

		case SMS_OUT:

			break;

		case CALL_IN:

			break;

		case CALL_OUT:

			break;
		}

	}
}
